package com.wangyadong.hobby.common.service.impl;


import com.wangyadong.hobby.common.dao.MyBatisDao;
import com.wangyadong.hobby.common.service.WemailRecordService;
import com.wangyadong.hobby.front.model.WemailRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @ClassName WemailRecordImpl
 * @Description TODO
 * @Authpr Antonio
 * @Data 2018-07015 10:39
 */
@Service
public class WemailRecordServiceImpl implements WemailRecordService {
    @Autowired
    private MyBatisDao myBatisDao;

    @Override
    public void insert(WemailRecord wemailRecord) {
        myBatisDao.insert("w_email_record.insert", wemailRecord);
    }

    @Override
    public WemailRecord getWemailRecord(Long id) {
        return myBatisDao.get("w_email_record.selectByPrimaryKey", id);
    }

    @Override
    public void update(WemailRecord wemailRecord) {
        myBatisDao.get("w_email_record.updateByPrimaryKeySelective", wemailRecord);
    }
}
